<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8" />
	<title>订单列表-{eyou:global name='web_name' /}</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
	<link href="{eyou:global name='web_cmspath'/}/favicon.ico" rel="shortcut icon" type="image/x-icon" />
	{eyou:static file="users/skin/css/bootstrap.min.css"/}
    {eyou:static file="users/skin/css/basic.css"/}
    {eyou:static file="users/skin/css/eyoucms.css"/}
    {eyou:static file="users/skin/css/shop.css"/}
    
    {eyou:static file="/public/static/common/js/jquery.min.js"/}
    {eyou:static file="/public/plugins/layer-v3.1.0/layer.js"/}
    {eyou:static file="/public/static/common/js/tag_global.js"/}

    {eyou:include file="users/skin/css/diy_css.htm"/}
</head>

<body class="centre shop">
<!-- 头部 -->
{eyou:include file="users/users_header.htm" /}
<!-- 头部结束 -->

<div class="member-profile ey-member">
	<div class="container">
		<div class="member-profile-content">
			<div class="row">
				<!-- 侧边 -->
                {eyou:include file="users/users_left.htm" /}
                <!-- 侧边结束 -->

                <!-- 中部 -->
                <div class="col-xs-12 col-sm-10 ey-member-safety" >
                    <div class="panel m-b-0">
                        <div class="panel-body ey-member-index ey-member-profile">
                            <div class="panel panel-default m-b-0 basic">
                            	<!-- 顶部导航栏 -->
                                <div class="panel-heading">
                                	<span class="fr">
                                		<a href="{eyou:url link='user/Shop/shop_address_list'/}" >
                                			<i class="fa fa-map-marker"></i> 管理收货地址
                                		</a>

                                        <a href="{eyou:url link='user/Shop/shop_cart_list'/}" >
                                        	<i class="fa fa-shopping-cart"></i> 购物车
                                        </a>
                                	</span>
                                    <strong>{$eyou.field.title}</strong>
                                </div>
								<!-- 顶部导航栏结束 -->
					           	<br>

                            	<!-- 订单导航栏 -->
                            	<div class="topsub">
                            		<!-- 查询栏 -->
                            		{eyou:spsearch id="search"}
							            <form  action="{$search.action}" method="get" class="serbox">
							            	{$search.hidden}
											<div class="shop-order-keyword m-y-20">
												<div class="form-group">
													<div class="input-search">
														<input type="text" class="form-control" name="keywords" value="{$Request.param.keywords}" placeholder="商品名称/订单号">
														<button type="submit" class="input-search-btn">
															<i class="icon wb-search" aria-hidden="true"></i>
														</button>
													</div>
												</div>
											</div>
										</form>
									{/eyou:spsearch}
									<!-- 查询栏结束 -->

									{eyou:spstatus id="field3"}
										<ul class="nav nav-tabs nav-tabs-line m-b-0 shop-order -state" id='each'>
											<li class="nav-item">
												<a class="nav-link {empty name='$field3.select_status'}active{/empty}" data-toggle="tab" href="{eyou:url link='user/Shop/shop_centre'/}">
													全部订单
												</a>
											</li>

											<li class="nav-item">
												<a class="nav-link {eq name='$field3.select_status' value='dzf'}active{/eq}" data-toggle="tab" href="{eyou:url link='user/Shop/shop_centre' vars='select_status=dzf'/}">
													<!-- select_status:dzf,表示状态为0 -->
													待付款
													{eyou:if condition="0 != $field3.PendingPayment"}
														<em>{$field3.PendingPayment}</em>
													{/eyou:if}
												</a>
											</li>

											<li class="nav-item">
												<a class="nav-link {eq name='$field3.select_status' value='2'}active{/eq}" data-toggle="tab" href="{eyou:url link='user/Shop/shop_centre' vars='select_status=2'/}">
													待收货
													{eyou:if condition="0 != $field3.PendingReceipt"}
														<em>{$field3.PendingReceipt}</em>
													{/eyou:if}
												</a>
											</li>

											<li class="nav-item">
												<a class="nav-link {eq name='$field3.select_status' value='3'}active{/eq}" data-toggle="tab" href="{eyou:url link='user/Shop/shop_centre' vars='select_status=3'/}">
													已完成
													{eyou:if condition="0 != $field3.Completed"}
														<em>{$field3.Completed}</em>
													{/eyou:if}
												</a>
											</li>
										</ul>
									{/eyou:spstatus}
								</div>
								<!-- 订单导航栏结束 -->

								{eyou:empty name="$eyou.field.data"}
									<!-- 订单数据为空 -->
									<div class="panel p-y-50 text-xs-center cart-not">
                                        <div class="container">
                                            <div class="row">
                                                <div class="col-lg-4 text-lg-right iconbox"></div>
                                                <div class="col-lg-8 text-lg-left animation-fade txt">
                                                    <p class="cart-not-title m-t-0 m-b-20 blue-grey-400">
                                                    	没有查询到订单数据！
                                                    </p>
                                                    <a href="{eyou:global name='web_cmsurl' /}" class="btn btn-lg btn-squared btn-primary">马上去购物</a>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
								{eyou:else/}
									<!-- 获取订单数据列表 -->
				                    {eyou:sporderlist id="field" pagesize="10"}
										<div class="shop-order-item page-1 ">
                                            <div class="shop-order-top">
                                            	<div class="col-md-8 col-sm-8 ting">
                                            		<h4>{$field.order_status_name}</h4>
                                            		<span class="info">订单号 : {$field.order_code}</span>
                                            		<span class="info">{$field.add_time|date='Y-m-d H:i:s',###}</span>
                                            		<span class="info">{$field.pay_name}</span>
                                            	</div>
                                                <div class="col-md-4 col-sm-4 ting text-sm-right">
                                                	<span class="price">￥{$field.order_amount}元</span><br>
                                                	含运费：¥{$field.shipping_fee}元
                                                </div>
                                                <div class="clearfix"></div>
                                           </div>

											<div class="clearfix shop-order-bottom">
												<!-- 获取订单商品 -->
												{eyou:spordergoods id="order_field"}
													<div class="col-sm-6 col-xl-7">
														<div class="media-xs m-t-10">
															<div class="media-left">
																<a href="{$order_field.arcurl}" target="_blank">
																	<img class="media-object" src="{$order_field.litpic}" alt="商品名称">
																</a>
															</div>
															<div class="media-body">
																<h4 class="media-heading">
																	<a href="{$order_field.arcurl}" target="_blank">
																		{$order_field.product_name}
																	</a>
																</h4>
																<p class="m-b-5">￥{$order_field.product_price} 元 x {$order_field.num}</p>
															</div>
														</div>
			                                        </div>
												{/eyou:spordergoods}
												<!-- 获取订单商品结束 -->
												
												<div class="col-xl-5 text-xs-right">
													<a href="{$field.OrderDetailsUrl}" class="btn btn-outline btn-default btn-squared m-t-10">
														订单详情
													</a>

													<!-- 订单状态判断，待付款 -->
													{eyou:eq name="$field.order_status" value="0"}
														<a href="{$field.PaymentUrl}" target="_blank" class="btn btn-primary btn-squared m-l-5 m-t-10">
															立即付款
														</a>
													{/eyou:eq}
													<!-- 待付款结束 -->

													<!-- 订单状态判断，待发货 -->
													{eyou:eq name="$field.order_status" value="1"}
														<a href="javascript:void(0);" class="btn btn-primary btn-squared m-l-5 m-t-10" {$field.OrderRemind} >
															催发货
														</a>
													{/eyou:eq}
													<!-- 待发货结束 -->

													<!-- 订单状态判断，待收货 -->
													{eyou:eq name="$field.order_status" value="2"}
														<!-- 订单类型判断，普通订单可查看物流，虚拟订单无需查看物流 -->
														{eyou:eq name="$field.prom_type" value="0"}
															<a href="JavaScript:void(0);" class="btn btn-primary btn-squared m-l-5 m-t-10" {$field.LogisticsInquiry}>物流查询</a>
														{/eyou:eq}
														<!-- 订单类型判断结束 -->
														<a href="javascript:void(0)" class="btn btn-primary btn-squared m-l-5 m-t-10" {$field.Confirm} >
															确认收货
														</a>
													{/eyou:eq}
													<!-- 待收货结束 -->
												</div>
											</div>
										</div>
										<!-- 表单、JS隐藏域 -->
										{$field.hidden}
									{/eyou:sporderlist}
									<!-- 获取订单数据列表结束 -->
                			</div>
                        </div>
                    </div>
                    <!-- 分页输出 -->
                    <div class="dataTables_paginate paging_simple_numbers text-xs-center">
                    	<ul class="pagination">
                    		{eyou:sppageorder listitem="index,end,pre,next" listsize="2"/}
                    	</ul>
                    </div>
                    <!-- 分页输出结束 -->
                    {/eyou:empty}
                </div>
                <!-- 中部结束 -->
			</div>
		</div>
	</div>
</div>
{eyou:include file="users/users_footer.htm" /}

